package model;

public class Group implements Comparable<Group> {
	public String Group_Name;
	public String Group_Name_Old;

	public Group(String name, String name_old) {
		Group_Name = name;
		Group_Name_Old = name_old;
	}

	public void Add() {
		College.getInstance().addGroup(this);
	}

	public Group get(Group g) {
		return g;
	}

	// CompareTo for Group on group_Name
	public int compareTo(Group g) {
		return Group_Name.compareToIgnoreCase(g.getGroup_name());
	}

	public String getGroup_name() {
		return Group_Name;
	}

	public void setGroup_name(String group_name) {
		Group_Name = group_name;
	}

	public String toString() {
		return Group_Name;
	}

	public void setGroup_name_old(String Group_name_old) {
		this.Group_Name_Old = Group_name_old;
	}

	public String getGroup_name_old() {
		return Group_Name_Old;
	}

}
